package cn.springcloud.fix.oauth2.autoconfigure.client;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeResourceDetails;

@Configuration
class OAuth2ProtectedResourceDetailsConfiguration {

    @Bean
    @ConfigurationProperties(prefix = "security.oauth2.client")
    @Primary
    public AuthorizationCodeResourceDetails oauth2RemoteResource() {
        return new AuthorizationCodeResourceDetails();
    }
}